﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace MyVoteMVC.Domain
{
    public class VT_Tickets
    {
        /// <summary>
        /// PK Guid
        /// </summary>
        public string Ticket_ID { get; set; }

        /// <summary>
        /// FK 所属活动ID
        /// </summary>
        public string Activity_ID { get; set; }

        /// <summary>
        /// FK 提交用户ID
        /// </summary>
        public string User_ID { get; set; }

        /// <summary>
        /// 票据号
        /// </summary>
        public int? Ticket_No { get; set; }

        /// <summary>
        /// 票据实体
        /// </summary>
        public string Ticket_Content { get; set; }

        /// <summary>
        /// 票据状态
        /// </summary>
        public int? Ticket_Status { get; set; }

        /// <summary>
        /// 票据提交时间
        /// </summary>
        public DateTime? Ticket_SubmitTime { get; set; }

        /// <summary>
        /// 创建人
        /// </summary>
        public string Created_By { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime? Created_Date { get; set; }

        /// <summary>
        /// 创建方法
        /// </summary>
        public string Created_Action { get; set; }

        /// <summary>
        /// 更新人
        /// </summary>
        public string Last_Update_By { get; set; }

        /// <summary>
        /// 更新时间
        /// </summary>
        public DateTime? Last_Update_Date { get; set; }

        /// <summary>
        /// 更新方法
        /// </summary>
        public string Last_Update_Action { get; set; }

        //LazyLoad

        /// <summary>
        /// 票据相关的活动
        /// </summary>
        public virtual VT_Activities Activity { get; set; }

        /// <summary>
        /// 票据相关的用户
        /// </summary>
        public virtual VT_Users User { get; set; }

        public virtual ICollection<VT_Lotteries> Lotteries { get; set; }
    }
}
